From 2f0ba8642d421ddd35ed4a6b801d5e62b93b2be3 Mon Sep 17 00:00:00 2001 From: Chad Horohoe Date: Fri, 2 Jan 2009 16:54:58 +0000 Subject: [PATCH] Tweak to r45324, use wfAppendQuery() instead. --- includes/Title.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/includes/Title.php b/includes/Title.php index 035314a60d..6dd164b68e 100644 --- a/includes/Title.php +++ b/includes/Title.php @@ -761,8 +761,7 @@ class Title { if( isset( $matches[4] ) ) $query .= $matches[4]; $url = str_replace( '$1', $dbkey, $wgActionPaths[$action] ); if( $query != '' ) { - $url .= ( strpos( $wgActionPaths[$action], '?' ) - === false ? '?' : '&' ) . $query; + $url .= wfAppendQuery( $url, $query ); } } } -- 2.20.1